package at.fhooe.engine.physics.forces;

public class DirectionAngularForce extends Force {

	private double m_acceleration;
	
	public DirectionAngularForce(double acceleration) {
		m_acceleration = acceleration;
	}
	
	@Override
	public double getAccelerationX(double time, double position, double velocity, double angularPosition) {
		return m_acceleration * Math.sin(angularPosition);
	}

	@Override
	public double getAccelerationY(double time, double position, double velocity, double angularPosition) {
		return -m_acceleration * Math.cos(angularPosition);
	}

	@Override
	public double getAngularAcceleration(double time, double position, double velocity, double angularPosition) {
		return 0;
	}
}
